﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="EditInvite.aspx.cs" Inherits="Manage_EditInvite" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#Comment').width($('#Body table.Info').width());

            $('#<%=Save.ClientID %>').click(function () {
                var ds = [{ 'Controller': '#<%=InviteTitle.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请输入邀请信息。',
                    'Clear': true,
                    'Focus': true
                },
                    { 'Count': $('#<%=Teachers.ClientID %>').children().children().children().children(':checked').size(),
                        'Type': 'C', 'ErrorMessage': '请选择教师。'
                    }
                     ];

                return Cms_ValidateForm(ds);
            });
        });
    </script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <asp:HiddenField ID="InviteID" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">标题：</td>
            <td align="center"><asp:TextBox ID="InviteTitle" runat="server" Width="500px" CssClass="text"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">详细信息：</td>
            <td>
                <asp:TextBox ID="Memo" runat="server" TextMode="MultiLine" Width="500px" Height="80px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">邀请教师：</td>
            <td align="center">
                <table>
                    <tr>
                        <td align="right">类别：</td>
                        <td><asp:DropDownList ID="Kind" runat="server" Width="100px" AutoPostBack="True" 
                                onselectedindexchanged="Kind_SelectedIndexChanged"></asp:DropDownList></td>
                        <td align="right">专业：</td>
                        <td><asp:DropDownList ID="Subject" runat="server" Width="100px" AutoPostBack="True" 
                                onselectedindexchanged="Subject_SelectedIndexChanged"></asp:DropDownList></td>
                        <td align="right">课程：</td>
                        <td><asp:DropDownList ID="Course" runat="server" Width="100px" AutoPostBack="True" 
                                onselectedindexchanged="Course_SelectedIndexChanged"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="left" colspan="6">
                            <asp:RadioButtonList ID="Teachers" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"></asp:RadioButtonList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Save" runat="server" Text="保存" 
                    CssClass="Button" onclick="Save_Click" /></td>
        </tr>
    </table>
    <div id="Comment">
        <p>注：请信息发布者在发布培训信息中要体现出，针对什么情况、什么时间、什么地点举办培训活动，并且留好联系方式方便学员联系。</p>
    </div>
</asp:Content>

